﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RoleTree.ascx.cs" Inherits="DMS.Web.Common.Controls.RoleTree" %>
<%@ Register TagPrefix="DMS" Namespace="DMS.Business.WebControls" Assembly="DMS.Business" %>
<div id="dvToolBar" runat="server">
</div>
<asp:HiddenField ID="hidContextNodePath" runat="server" />
<DMS:TreeViewPlus ID="tvRoles" runat="server" ShowLines="true" ShowCheckBoxes="None" ShowContextMenu="All"
    PathSeparator=">" ExpandDepth="FullyExpand" >
</DMS:TreeViewPlus>
<div id="dvEmptyMsg" class="EmptyMsg" runat="server" visible="false">
    没有找到相关信息，若有疑问，请联系管理员。
</div>
<script language="javascript" type="text/javascript">
<!--
    function ExpendNode(nodeVal) {
        var url = "<%=Request.Url.AbsolutePath %>?node=" + nodeVal + "&rnd=" + Math.random();
        window.location.replace(url);
    }

    function NodeClick(nodeID) {
        var nodeHolder = document.getElementById(nodeID);
        if (nodeHolder == null) {
            return;
        }
        var linkCtrl = nodeHolder.getElementsByTagName("A");
        if (linkCtrl.length > 0) {
            linkCtrl[0].click();
        }
    }
//-->
</script>
